const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    port: 81,
    host: '0.0.0.0',
    client: {
      overlay: false
    },
    historyApiFallback: true,
    proxy: {
      '/user': {
        target: 'http://localhost:8080',
        changeOrigin: true,
        pathRewrite: {
          '^/user': '/user'
        }
      }
    }
  },
  pages: {
    index: {
      entry: 'src/main.js',
      title: '问卷调查系统'
    }
  }
})
